<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

$this->title = '发票详情';
$this->params['breadcrumbs'][] = $this->title;
?>
    <style>
        body{
            background: #f9f9f9;
        }
        .rightdiv{
            width: 680px;
        }
        .rwidt{
            width: 660px;
        }
        .Validform_checktip{margin:4px 0 12px 92px;}
        .jsformsub label{display:inline-block; width:105px;font-size: 14px;color: #666666;text-align: right;}
        .inputxt{
            width: 175px;
            border: 1px solid #e5e5e5;
            border-radius: 0;
            padding-bottom: 4px;
            padding-top: 4px;
            text-overflow: ellipsis;
            white-space: normal;
            overflow: hidden;
            padding-right: 10px;
            font-size: 14px;
            color: #666666;
        }
        .need{
            color: #ff0000;
        }
        .action{
            border-top: 1px solid #eeeeee;
            text-align: right;
            padding-top: 20px;
            padding-right: 20px;
        }
        .action input{
            border: 0 none;
            color: #666666;
            font-size: 12px;
            padding: 3px 15px;
            width: auto;
            cursor: pointer;
        }
        .jssubac{
            background-color: #cccccc;
        }
        .fpxxdiv{
            border-left: none;
            border-right: none;
            border-bottom: none;
        }
        .fpxxh3{
            border-right: 1px solid #e9eaef;
        }
        .xqtable tr td{
            padding: 15px 0 15px 23px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
    </style>
            <div class="rwidt">
                <div class="rigtable">
                    <h3 class="grh3tit">发票详情</h3>
                    <div class="jsdz">
                        <div class="fpxxdiv">
                            <h3 class="fpxxh3">订单概要</h3>
                            <div class="clearFloat">
                                <table class="xqtable">
                                    <tr>
                                        <td width="50%">
                                            发票金额：￥<?=$data['money']?>
                                        </td>
                                        <td width="50%">
                                            发票抬头：<?=$data['title']?>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="50%">
                                            发票状态：<span  class="text-3e9829"><?=$data['status']?></span>
                                        </td>
                                        <td width="50%">
                                            发票编号：<?=$data['invoicesn']?>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="50%">
                                            发票类型：<?=$data['invotecate']?>
                                        </td>
                                        <td width="50%">
                                            申请时间：<?=date('Y-m-d H:i:s',$data['created_at'])?>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="50%">
                                            收件人：<?=$data['invoterecip']?>
                                        </td>
                                        <td width="50%">
                                            收取地址：<?=$data['invoteaddress']?>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="50%">
                                            邮编：<?=$data['invotecode']?>
                                        </td>
                                        <td width="50%">
                                            联系电话：<?=$data['invotephone']?>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="50%">
                                            物流公司：<?=$data['invotewuliu']?>
                                        </td>
                                        <td width="50%">
                                            快递编号：<?=$data['invotewunum']?>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                        <div class="fpxxdiv">
                            <h3 class="fpxxh3">关联订单/月账单</h3>
                            <div class="clearFloat" style="border-bottom: 1px solid #e9eaef">
                                <div class="clearFloat" style="height: 240px;overflow-y: auto">
                                    <table class="xqtable2">
                                        <tr>
                                            <th width="60%">
                                                <span class="pl40">订单/账单编号</span>
                                            </th>
                                            <th width="20%">
                                                金额
                                            </th>
                                            <th>
                                                起止时间
                                            </th>
                                        </tr>
										<?php foreach($order as $k=>$val){?>
                                        <tr>
                                            <td>
                                                <span class="pl40">开票订单号 ： <?=$val['ordersn']?></span>
                                            </td>
                                            <td>
                                                ￥<?=$val['paymoney']?>
                                            </td>
                                            <td>
                                                <?=date('Y-m-d H:i:s',$val['created_at'])?>
                                            </td>
                                        </tr>
										<?php } ?>
                                    </table>
                                </div>
                            </div>

                        </div>


                    </div>
                </div>
            </div>
